package com.aliyunlog.model;

import java.util.List;

import org.apache.commons.collections.CollectionUtils;

/**
 *
 * @author tanson lam
 * @creation 2017年6月25日
 * 
 */
public class LogItemResult {
	/**
	 * 消息主题
	 */
	private String title;
	/**
	 * 消息列表
	 */
	private List<String> messageList;

	public LogItemResult(String title, List<String> messageList) {
		this.title = title;
		this.messageList = messageList;
	}

	public int getMessageCount() {
		return CollectionUtils.isEmpty(messageList) ? 0 : messageList.size();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<String> getMessageList() {
		return messageList;
	}

	public void setMessageList(List<String> messageList) {
		this.messageList = messageList;
	}

}
